package com.zaoniao.enstudy.infrastructure.mapper;

import com.zaoniao.enstudy.domain.entity.bo.ZaoWordBo;
import com.zaoniao.enstudy.infracore.mapper.MyMapper;
import com.zaoniao.enstudy.infrastructure.po.ZaoWordPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 早鸟单词仓储层.
 *
 * @author llb
 */
public interface ZaoWordMapper extends MyMapper<ZaoWordPo> {

    /**
     * 根据年级随机获取10个单词信息
     *
     * @param grade 年级
     * @param userId 用户
     * @return 单词列表
     */
    List<ZaoWordBo> getWordListRand(@Param("grade") Integer grade, @Param("userId") String userId);

}